<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "t_base_user_profile".
 *
 * @property string $id
 * @property string $user_id 用户id @ucenter表
 * @property string $pet_name 真实姓名
 * @property string $mobilephone 手机
 * @property string $tel 电话
 * @property string $type 是否老师学生
 * @property string $student_type 学生类型：应届普通高中毕业生，应届中职毕业生，退役军人、下岗职工、农民工、新型职业 农民、其他
 * @property string $school_id 学校
 * @property string $department_id 院系
 * @property string $major_id 专业
 * @property string $year 入学年份
 * @property string $is_graduate 是否毕业
 * @property string $xueli 学历
 * @property string $company 公司
 * @property string $gender 性别
 * @property string $birthday 生日
 * @property int $age 年龄
 * @property string $url_image
 * @property string $qianming 签名
 * @property string $os_type 系统类型
 * @property string $province
 * @property string $city
 * @property string $luid 字符串，不唯一，可为空，用于标识在学习平台上的uid
 * @property string $platform_id 字符串, 用于标识来源于哪个学习平台
 * @property string $project_code
 * @property string $id_number
 * @property string $email 邮箱
 * @property string $address 详细地址
 * @property string $student_no 学号
 * @property string $create_by
 * @property string $create_time
 * @property string $update_by
 * @property string $update_time
 * @property int $del_flag
 */
class TBaseUserProfile extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 't_base_user_profile';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['id'], 'required'],
            [['birthday'], 'safe'],
            [['age', 'del_flag'], 'integer'],
            [['id', 'user_id', 'school_id', 'department_id', 'major_id', 'create_by', 'update_by'], 'string', 'max' => 36],
            [['pet_name', 'type', 'student_type', 'is_graduate', 'xueli', 'company', 'gender', 'url_image', 'qianming', 'address', 'create_time', 'update_time'], 'string', 'max' => 255],
            [['mobilephone', 'tel'], 'string', 'max' => 13],
            [['year'], 'string', 'max' => 4],
            [['os_type', 'province', 'city'], 'string', 'max' => 10],
            [['luid'], 'string', 'max' => 50],
            [['platform_id'], 'string', 'max' => 60],
            [['project_code', 'id_number'], 'string', 'max' => 32],
            [['email'], 'string', 'max' => 320],
            [['student_no'], 'string', 'max' => 64],
            [['id'], 'unique'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'user_id' => 'User ID',
            'pet_name' => 'Pet Name',
            'mobilephone' => 'Mobilephone',
            'tel' => 'Tel',
            'type' => 'Type',
            'student_type' => 'Student Type',
            'school_id' => 'School ID',
            'department_id' => 'Department ID',
            'major_id' => 'Major ID',
            'year' => 'Year',
            'is_graduate' => 'Is Graduate',
            'xueli' => 'Xueli',
            'company' => 'Company',
            'gender' => 'Gender',
            'birthday' => 'Birthday',
            'age' => 'Age',
            'url_image' => 'Url Image',
            'qianming' => 'Qianming',
            'os_type' => 'Os Type',
            'province' => 'Province',
            'city' => 'City',
            'luid' => 'Luid',
            'platform_id' => 'Platform ID',
            'project_code' => 'Project Code',
            'id_number' => 'Id Number',
            'email' => 'Email',
            'address' => 'Address',
            'student_no' => 'Student No',
            'create_by' => 'Create By',
            'create_time' => 'Create Time',
            'update_by' => 'Update By',
            'update_time' => 'Update Time',
            'del_flag' => 'Del Flag',
        ];
    }
}
